﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;

namespace ReadeAssetManager
{
    class Utility
    {
        public static Size MainWindowSize
        {
            get { return Properties.Settings.Default.MainSize; }
            set { Properties.Settings.Default.MainSize = value; }
        }

        public static Point MainWindowPosition
        {
            get { return Properties.Settings.Default.MainLocation; }
            set { Properties.Settings.Default.MainLocation = value; }
        }

        public static FormWindowState MainWindowState
        {
            get { return Properties.Settings.Default.MainState; }
            set { Properties.Settings.Default.MainState = value; }
        }

        public static Size MainSidebarSize
        {
            get { return Properties.Settings.Default.MainSidebarSize; }
            set { Properties.Settings.Default.MainSidebarSize = value; }
        }

        public static void SaveSettings()
        {
            Properties.Settings.Default.Save();
        }
    }
}
